#region (c) 2009 Abdullin.com and Contributors

// Copyright (c) 2009 Abdullin.com and Contributors
// Site: http://abdullin.com/ncouch
// This code is released under the terms of the new BSD licence

#endregion

using System.IO;

namespace NCouch.Rest
{
	sealed class RestClientInjectionStream : MemoryStream
	{
		public bool CanBeClosed { private get; set; }

		public override void Close()
		{
			if (CanBeClosed)
				base.Close();
		}
	}
}